package com.ltsh.fim.server.config;

import com.ltsh.fim.server.inf.ServerHandler;

import java.util.HashMap;
import java.util.Map;

public class ServiceContext {
    private static Map<String, ServerHandler> handler = new HashMap<>();

    public static void addHandler(String key, ServerHandler serverHandler) {
        handler.put(key, serverHandler);

    }
    public static ServerHandler getHandler(String key) {
        return handler.get(key);
    }
    public static void removeHandler(String key) {
        handler.remove(key);
    }
}
